package com.itheima.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.common.vo.Result;
import com.itheima.service.LoginService;
import com.itheima.service.OrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("validateCode")
public class ValidateCodeController {

    @Reference(version = "1.0")
    private LoginService loginService;

    ///validateCode/send4Login.do?telephone=

    @GetMapping("send4Login")
    public Result send4Login(String telephone) {
        return loginService.send4Login(telephone);
    }

}
